Skip to content

PS-11417: Enforce the wildcard-subject guard in the GitHub OIDC module#366

Merged
nogueiraanderson merged 1 commit into
mainfrom
PS-11417-oidc-subject-wildcard-validation
Jul 24, 2026
Merged

PS-11417: Enforce the wildcard-subject guard in the GitHub OIDC module#366
nogueiraanderson merged 1 commit into
mainfrom
PS-11417-oidc-subject-wildcard-validation

Conversation

@nogueiraanderson

Copy link
Copy Markdown
Collaborator

Bug

  • The github-oidc-role module documents that wildcard subject claims are "forbidden at the API", but its only validation rejects empty lists
  • StringEquals keeps a wildcard inert either way, so there is no live exposure; the documented gate was aspirational

Fix

  • Add a subject_claims validation rejecting * and ?, failing at plan time with a clear message
  • Align the module header with the enforced behavior

Tickets

…module

- Add a validation rejecting * and ? in subject_claims, making the
  'forbids them at the API' comment true instead of aspirational
- StringEquals keeps wildcards inert either way; the gate now blocks
  them at plan time with a clear message
@nogueiraanderson
nogueiraanderson merged commit b23f29c into main Jul 24, 2026
8 checks passed
@nogueiraanderson
nogueiraanderson deleted the PS-11417-oidc-subject-wildcard-validation branch July 24, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant